package com.usian.yygh.cmn.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * ClassName: HospConfig
 * Author:   WGG
 * Date:    2022-12-2022/12/27-16:16
 * Version: 1.0
 * Description:
 */


@Configuration
@MapperScan("com.usian.yygh.cmn.mapper")
@ComponentScan(basePackages = "com.usian")
@EnableDiscoveryClient
public class CmnConfig {

    /**
     * 分页插件
     */
    @Bean
    public PaginationInterceptor paginationInterceptor(){
        return new PaginationInterceptor();
    }
}
